package com.wxt.asmplugins

/**
 * Created by wanglei on 2017/3/17.
 */
class Utils {
    static long copy(InputStream input, OutputStream output) throws IOException {
        return copy(input, output, 8024);
    }

    static long copy(InputStream input, OutputStream output, int buffersize) throws IOException {
        byte[] buffer = new byte[buffersize];
        boolean n = false;

        long count;
        int n1;
        for (count = 0L; -1 != (n1 = input.read(buffer)); count += (long) n1) {
            output.write(buffer, 0, n1);
        }
        return count;
    }

    static void log(String log){
        System.out.println(log)
    }

}
